#pragma once

#include <pthread.h>
#include "Mutex.h"


class Condition
{
public:
    Condition(void);
    ~Condition(void);

    int Wait(Mutex* pMutex);
    int Signal();

    int TimedWait(Mutex* pMutex, const struct timespec* abstime);
    int Broadcast();

protected:
    pthread_cond_t      m_cond;
    //pthread_condattr_t  m_attr;

};


